package de.gameduell.framework.facebook.app.popups {
	import de.gameduell.framework.facebook.app.Controller;
	import de.gameduell.framework.facebook.app.PageManager;

	import fl.transitions.easing.Regular;

	import de.gameduell.framework.facebook.FBBaseAppLayout;
	import de.gameduell.framework.facebook.reporting.FBBaseTracker;
	import de.gameduell.framework.gui.animation.CombinedTween;
	import de.gameduell.framework.gui.animation.GDTween;
	import de.gameduell.framework.gui.popup.Popup;
	import de.gameduell.framework.locale.LocaleData;

	import flash.events.Event;
	import flash.filters.DropShadowFilter;

	public class PyramidBasePopup extends Popup {
		protected var layout:FBBaseAppLayout;
		protected var controller:Controller;
		protected var localeData:LocaleData;
		protected var tracker:FBBaseTracker;
		protected var pageManager:PageManager;

		public function PyramidBasePopup(libraryID:String, aId:String, aLifeTime:Number, isDraggable:Boolean) {
			super(libraryID, aId, aLifeTime, false);
			layout = FBBaseAppLayout.getInstance();
			controller = Controller.getInstance();
			localeData = LocaleData.getInstance();
			tracker = FBBaseTracker.getInstance();
			pageManager = PageManager.getInstance();
			
			y = 105;
//			x = (760 / 2) - (width / 2);
						
			modal = true;
			blocker.setColor(0xFFFFFF, 0);
			sprite.filters = [new DropShadowFilter(10, 45, 0, 0.5, 3, 2, 0.75)];
			
//			var myShowTween:CombinedTween = new CombinedTween();
//			myShowTween.addTween(new GDTween(sprite, "x", Regular.easeOut, -350, _position.x, 0.3, true));
//			myShowTween.addTween(new GDTween(sprite, "alpha", Regular.easeOut, 0, 1, 0.5, true));
//			showTween = myShowTween;
//			
//			var myHideTween:CombinedTween = new CombinedTween();
//			myHideTween.addTween(new GDTween(sprite, "x", Regular.easeIn, _position.x, -350, 0.3, true));
//			myHideTween.addTween(new GDTween(sprite, "alpha", Regular.easeIn, 1, 0, 0.5, true));
//			hideTween = myHideTween;
		}

		override public function show(event:Event = null):void {
			super.show(event);
		}
	}
}
